The Kinetis SDK provides the µC/OS-II Abstraction Layer for synchronization, mutual exclusion, message queue, etc.
More...
|
| #define | FSL_RTOS_TASK_DEFINE(task, stackSize, name, usesFloat) |
| | Creates a task descriptor that is used to create the task with task_create. More...
|
| |
| #define | task_create(task, priority, param, handler) |
| | Creates and sets the task to active. More...
|
| |
| struct MSGQ_STRUCT_UCOSII |
Data Fields |
|
OS_EVENT * | pq |
| | pointer to the queue
|
| |
|
void ** | msgTbl |
| | pointer to the array that saves the pointers to messages
|
| |
|
uint16_t | size |
| | size of the message in words
|
| |
| #define kSyncWaitForever 0xFFFFFFFFU |
| #define FSL_RTOS_TASK_DEFINE |
( |
|
task, |
|
|
|
stackSize, |
|
|
|
name, |
|
|
|
usesFloat |
|
) |
| |
Value:
uint8_t fslTaskName_##task[] = name; \
bool fslTaskFloatUse_##task = usesFloat
uint32_t task_stack_t
Type for a task stack.
Definition: fsl_os_abstraction_bm.h:79
- Parameters
-
| task | The task function. |
| stackSize | Number of elements in the stack for this task. |
| name | String to assign to the task. |
| usesFloat | Boolean that indicates whether the task uses the floating point unit. |
| #define task_create |
( |
|
task, |
|
|
|
priority, |
|
|
|
param, |
|
|
|
handler |
|
) |
| |
Value:
fslTaskName_##task, \
sizeof(fslTaskStack_##task), \
fslTaskStack_##task, \
priority, \
param, \
fslTaskFloatUse_##task, \
handler)
fsl_rtos_status __task_create(task_t task, uint8_t *name, uint16_t stackSize, task_stack_t *stackMem, uint16_t priority, void *param, bool usesFloat, task_handler_t *handler)
Create a task.
- Parameters
-
| task | The task function. |
| priority | Initial priority of the task. |
| param | Pointer to be passed to the task when it is created. |
| handler | Returns the identifier to be used afterwards to destroy the task. |
- Return values
-
| kSuccess | The task was successfully created. |
| kError | Creation of task failed. |
To be used instead of a standard declaration.
- Parameters
-
| obj | The sync object to create. |
To be used instead of a standard declaration.
- Parameters
-
| obj | The lock object to create. |
| #define MSG_QUEUE_DECLARE |
( |
|
name, |
|
|
|
number, |
|
|
|
size |
|
) |
| |
Value:void* msgTbl##name[number];
\
.msgTbl = msgTbl##name \
}
xQueueHandle msg_queue_t
Type for a message queue declaration and creation.
Definition: fsl_os_abstraction_free_rtos.h:120
- Parameters
-
| name | Identifier for the memory region. |
| number | Number of elements in the queue. |
| size | Size of every elements in words. |